package com.zl.registration.controller;

import com.zl.registration.module.result.CodeMsg;
import com.zl.registration.module.result.Result;
import com.zl.registration.service.SignUpService;
import com.zl.registration.vo.SignUpVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 活动报名接口
 *
 * @author zoulei
 * @date 2021/11/25 10:48
 */
@Slf4j
@RestController
@RequestMapping("/signUp")
public class SignUpController {

    @Resource
    private SignUpService signUpService;

    @PostMapping("/signUp")
    public Result<CodeMsg> signUp(SignUpVo signUpInfo){
        CodeMsg codeMsg = signUpService.signUp(signUpInfo);
        return Result.success(codeMsg);
    }

}
